package com.example.hs.DTO;

import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
@Data
public class CategoryDTO {

    private int categoryId;
    private String name;
    private List<CategoryDTO> children;
    private BigDecimal price;

    // 构造函数、Getters and Setters
    public CategoryDTO(int categoryId, String name, List<CategoryDTO> children, BigDecimal price) {
        this.categoryId = categoryId;
        this.name = name;
        this.children = children;
        this.price = price;
    }

    // Getters and Setters
}